package com.dnjn.mes.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.mes.biz.domain.MesRegisterAddress;
import com.dnjn.mes.biz.enums.AddrCode;
import com.dnjn.mes.biz.enums.AddrType;

import java.util.List;

/**
 * <p>
 * modbus地址对应表 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-07-26
 */
public interface IMesRegisterAddressService extends IService<MesRegisterAddress> {

    List<MesRegisterAddress> fetchCurrentAddress();

    MesRegisterAddress fetchAddressByAddrCode(AddrCode addrCode, Long equipmentId);

    List<MesRegisterAddress> fetchAddressByAddrType(AddrType addrType);

    Boolean updateAddressByCode(MesRegisterAddress mesRegisterAddress);


}
